package com.bytz.modules.cms.user.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bytz.common.aspect.annotation.Dict;
import com.bytz.common.entity.IEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 莱宝CMS—审批管理—批量审批批次表
 * </p>
 *
 * @author KyleWang
 * @since 2022-10-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cms_audit_batch")
@ApiModel(value="AuditBatch对象", description="莱宝CMS—审批管理—批量审批批次表")
public class AuditBatch implements Serializable, IEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "经销商ID")
    private String resellerId;

    @ApiModelProperty(value = "经销商名称")
    private String resellerName;

    @ApiModelProperty(value = "产品线ID")
    private String productLineId;

    @ApiModelProperty(value = "产品线名称")
    private String productLineName;

    @ApiModelProperty(value = "批量修改数据量")
    private String batchCount;

    @ApiModelProperty(value = "类型：产品审批、产品优惠分类折扣审批、经销商等级变动")
    @Dict(dicCode = "cms_audit_batch_type")
    private String type;

    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "cms_audit_batch_status")
    private String status;

    @ApiModelProperty(value = "批次名字")
    private String name;

    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "流程审批人")
    private String auditUsers;

    @ApiModelProperty(value = "下一节点处理人")
    private String nextAuditUsers;

    @ApiModelProperty(value = "流程实例Id")
    private String procInstId;

    @ApiModelProperty(value = "提交时间")
    private LocalDateTime submitTime;

    @ApiModelProperty(value = "完成时间")
    private LocalDateTime completeTime;

    @ApiModelProperty(value = "生效时间")
    private LocalDateTime effectTime;

}
